<?php
/**
 * Created by PhpStorm.
 * User: liuxiaojie
 * Date: 2019-02-24
 * Time: 13:21
 */

namespace app\api\controller;

use app\common\Base;
use \app\model\Area as AreaM;

class Area extends Base{

    function index(){
        $parent_code = $this->getParam('parent_code', 0);

        $result = AreaM::getChildren($parent_code);

        return success($result);
    }

}